//package com.example.gateway.config;
//
//import com.alibaba.nacos.api.NacosFactory;
//import com.alibaba.nacos.api.config.ConfigService;
//import com.alibaba.nacos.api.exception.NacosException;
//import com.alibaba.nacos.api.config.ConfigType;
//import com.alibaba.nacos.api.config.annotation.NacosConfigurationProperties;
//import com.alibaba.nacos.api.config.ConfigService;
//import com.alibaba.nacos.api.exception.NacosException;
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.core.env.*;
//import org.springframework.util.StringUtils;
//
//@Configuration
//public class GatewayConfig {
//    @Value("${nacos.config.server-addr}")
//    private String serverAddr;
//
//    @Value("${nacos.config.namespace}")
//    private String namespace;
//
//    @Value("${nacos.config.group}")
//    private String group;
//
//    @Bean(initMethod = "init")
//    public ConfigService configService() throws NacosException {
//        return NacosFactory.createConfigService(serverAddr, namespace, group);
//    }
//}
